﻿<%@ Control Language="C#"  %>
<script runat="server">
    private string shopping_cart_list;
    private int Item_Lang;
    private int Position_Count = 0;
    private int bill_id = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        Item_Lang = Utils.GetQueryString("lang", 1);
        Product pro = new Product();
        Repeater_List.DataSource = pro.List_Shopping_cart(Shopping_Cart_List);
        Repeater_List.DataBind();
    }
    public string Shopping_Cart_List
    {
        get { return shopping_cart_list; }
        set { shopping_cart_list = value; }
    }
    public int Bill_Id
    {
        get { return bill_id; }
        set { bill_id = value; }
    }
</script>
<ul>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
    <li class="li<%#Eval("Item_Id") %>">
        <code class="item_id"><%#Eval("Item_Id") %></code>
        <img src="../DataFile/Product/<%#Eval("Create_Time","{0:yyyyMM}") %>/<%#Eval("Create_Time","{0:ddHHmmss}") %>_ssss.jpg" />
        <span><%#Eval("Item_Name") %><b><%#Eval("Name") %></b></span>
        <code class="price"><%#Eval("Item_Price") %></code>
        <div class="count_control"><button class="minus">-</button><code data-item-id="<%=Bill_Id %>" data-price="<%#Eval("Item_Price") %>" class="count number_<%#Eval("Item_Id") %>">0</code><button class="plus">+</button></div>
        <button class="del" ><%=Lang.Show("Del")%></button>
    </li></ItemTemplate>
</asp:Repeater></ul>